package com.apps.member.download.service;

import com.apps.member.account.enums.AccountItemMinType;
import com.apps.member.account.model.po.KupaAccount;
import com.apps.member.download.enums.DownloadAccountItemMinType;
import com.apps.member.download.model.po.KupaMemberDownloadAccount;
import com.apps.sworld.dao.sMember;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 大鹏
 * @since 2020-11-06
 */
public interface IKupaMemberDownloadAccountService extends sMember<KupaMemberDownloadAccount> {

    /**
     * 收入钱
     * @param member_id
     * @param count
     * @param itemMinType
     * @return
     */
    KupaMemberDownloadAccount Income(Integer member_id, Integer count, DownloadAccountItemMinType itemMinType);

    /**
     * 支出钱
     * @param member_id
     * @param count
     * @param itemMinType
     * @return
     */
    KupaMemberDownloadAccount Spend(Integer member_id, Integer count, DownloadAccountItemMinType itemMinType);

    /**
     * 更新账户余额
     * @param member_id
     * @param count
     * @return
     */
    KupaMemberDownloadAccount updateAccount(Integer member_id,Integer count);

}
